package com.yq.design.visitor;

/**
 * @ClassName VistorClient
 * @Description 访问者模式,两类人给打分，成功或者失败
 * @Author yaoqiang
 * @Date 2021/8/23 15:26
 * @Version 1.0
 */
public class VistorClient {
    public static void main(String[] args) {
        ObjectStructure objectStructure=new ObjectStructure();
        objectStructure.attach(new Man());
        objectStructure.attach(new Woman());
        Succ succ=new Succ();
        objectStructure.display(succ);
    }
}
